bitkeeper revision 1.1649 (429f6bb65KQm70mnFwO33ykh9n1qag)
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Thu, 2 Jun 2005 20:27:34 +0000 (20:27 +0000)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Thu, 2 Jun 2005 20:27:34 +0000 (20:27 +0000)
sched.h:
  g/c unneeded include.
Many files:
  Rename xen/slab.h to xen/xmalloc.h and fix resulting fallout.
xmalloc.h:
  Rename: xen/include/xen/slab.h -> xen/include/xen/xmalloc.h
sched.h, multicall.c, dom_mem_ops.c, asm-offsets.c:
  cleanup incorrect includes.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
17 files changed:
.rootkeys
xen/arch/x86/dmi_scan.c
xen/arch/x86/io_apic.c
xen/arch/x86/microcode.c
xen/arch/x86/mtrr/generic.c
xen/arch/x86/x86_32/asm-offsets.c
xen/arch/x86/x86_64/asm-offsets.c
xen/common/dom_mem_ops.c
xen/common/multicall.c
xen/common/page_alloc.c
xen/common/sched_bvt.c
xen/common/sched_sedf.c
xen/common/trace.c
xen/include/xen/lib.h
xen/include/xen/sched.h
xen/include/xen/slab.h [deleted file]
xen/include/xen/xmalloc.h [new file with mode: 0644]

index 65875185d476802a35043ca7031646214195abf6..4f79a0d0c70bfce792a3f201f148a49380e8b15f 100644 (file)
--- a/.rootkeys
+++ b/.rootkeys
 3ddb79c0LzqqS0LhAQ50ekgj4oGl7Q xen/include/xen/sched.h
 403a06a7H0hpHcKpAiDe5BPnaXWTlA xen/include/xen/serial.h
 4252c315hw0xXYMKIfFzhomi1M1yNA xen/include/xen/shadow.h
-3ddb79c14dXIhP7C2ahnoD08K90G_w xen/include/xen/slab.h
 3ddb79c09xbS-xxfKxuV3JETIhBzmg xen/include/xen/smp.h
 3ddb79c1Vi5VleJAOKHAlY0G2zAsgw xen/include/xen/softirq.h
 3ddb79c2iIcESrDAB8samy_yAh6olQ xen/include/xen/spinlock.h
 3ddb79c0BnA20PbgmuMPSGIBljNRQw xen/include/xen/time.h
 403a3edbG9K5uZjuY19_LORbQGmFbA xen/include/xen/trace.h
 3ddb79c1-kVvF8cVa0k3ZHDdBMj01Q xen/include/xen/types.h
+3ddb79c14dXIhP7C2ahnoD08K90G_w xen/include/xen/xmalloc.h
 41d291f5u3J3HYViXLs3cNuFGTvzNg xen/tools/Makefile
 3eb3c87fc79FXLA6R9TvdBJNTvQDwA xen/tools/figlet/LICENSE
 3eb3c87fPL2T_zBb0bHlbZY-ACEKRw xen/tools/figlet/Makefile
index 13c8d97915a9d253ff7587b8e4cd3d9da1beaeaa..3bb1820c663faa29822e0f3f1a78aefedb2a4e2f 100644 (file)
@@ -1,10 +1,10 @@
 #include <xen/config.h>
 #include <xen/types.h>
+#include <xen/lib.h>
 #include <xen/kernel.h>
 #include <xen/string.h>
 #include <xen/init.h>
 #include <xen/cache.h>
-#include <xen/slab.h>
 #include <xen/acpi.h>
 #include <asm/io.h>
 #include <asm/system.h>
index 71a826045379632293d408ae6c76830a411d4128..a0020c7ec2d74b2e94d8c0a4ff14af82f92ceb65 100644 (file)
@@ -21,6 +21,7 @@
  */
 
 #include <xen/config.h>
+#include <xen/lib.h>
 #include <xen/init.h>
 #include <xen/irq.h>
 #include <xen/delay.h>
@@ -234,7 +235,7 @@ static void set_ioapic_affinity_irq(unsigned int irq, cpumask_t cpumask)
 #if defined(CONFIG_IRQBALANCE)
 # include <asm/processor.h>    /* kernel_thread() */
 # include <xen/kernel_stat.h>  /* kstat */
-# include <xen/slab.h>         /* kmalloc() */
+# include <xen/xmalloc.h>      /* kmalloc() */
 # include <xen/timer.h>        /* time_after() */
  
 # ifdef CONFIG_BALANCED_IRQ_DEBUG
index fcf4f94125aa44259df5794b2cd74c916c2bd8a3..6e47acea3fe9a1267d9b529c4e15de63110f9fde 100644 (file)
  */
 
 #include <xen/config.h>
+#include <xen/lib.h>
 #include <xen/kernel.h>
 #include <xen/init.h>
 #include <xen/sched.h>
-#include <xen/slab.h>
 #include <xen/spinlock.h>
 
 #include <asm/msr.h>
index 899069acf4703b4bf15d9c37f88177191abe2190..9ab5be4ec689e9a160af2758e0d8bfde4482df0e 100644 (file)
@@ -1,8 +1,8 @@
 /* This only handles 32bit MTRR on 32bit hosts. This is strictly wrong
    because MTRRs can span upto 40 bits (36bits on most modern x86) */ 
+#include <xen/lib.h>
 #include <xen/init.h>
 #include <xen/mm.h>
-#include <xen/slab.h>
 #include <asm/flushtlb.h>
 #include <asm/io.h>
 #include <asm/mtrr.h>
index b12d19bd80f52badfccdd2dc2a8f5a97c8066289..efc4aa3ecff5e67799d36f47063c9acdcc5e8661 100644 (file)
@@ -7,6 +7,7 @@
 #include <xen/config.h>
 #include <xen/perfc.h>
 #include <xen/sched.h>
+#include <asm/hardirq.h>
 
 #define DEFINE(_sym, _val) \
     __asm__ __volatile__ ( "\n->" #_sym " %0 " #_val : : "i" (_val) )
index fdb1359c767b4450fdb3a6fed8f4ec3b165341be..29e3808736009188ff6cb3b4acbf1884ed754067 100644 (file)
@@ -7,6 +7,7 @@
 #include <xen/config.h>
 #include <xen/perfc.h>
 #include <xen/sched.h>
+#include <asm/hardirq.h>
 
 #define DEFINE(_sym, _val) \
     __asm__ __volatile__ ( "\n->" #_sym " %0 " #_val : : "i" (_val) )
index 40aa522eb0d6da2ab95aa1b24493ef1db30a6d05..41a4406f0c0d65f58069cee82ddc12bb787eda6d 100644 (file)
@@ -15,6 +15,7 @@
 #include <xen/event.h>
 #include <xen/shadow.h>
 #include <asm/domain_page.h>
+#include <asm/hardirq.h>
 
 /*
  * To allow safe resume of do_dom_mem_op() after preemption, we need to know 
index 1403041db8790978ac9f26328865ce44db1af29e..3f6921353b8ee55ceb06df8768a7eaf5d49caa16 100644 (file)
@@ -10,6 +10,7 @@
 #include <xen/sched.h>
 #include <xen/event.h>
 #include <xen/multicall.h>
+#include <asm/hardirq.h>
 
 struct mc_state mc_state[NR_CPUS];
 
index 5b388cafbf2ce6747297a02cb9e24a90247e60b2..50b1268e85b35484f00c4be80d13d1c7ba90668b 100644 (file)
@@ -27,7 +27,6 @@
 #include <xen/perfc.h>
 #include <xen/sched.h>
 #include <xen/spinlock.h>
-#include <xen/slab.h>
 #include <xen/mm.h>
 #include <xen/irq.h>
 #include <xen/softirq.h>
index 580698c53b566662f6b14f7b968c035ed001fe7b..35f901fccc1955d6fd490281e3feb8796bbcf276 100644 (file)
@@ -23,7 +23,6 @@
 #include <xen/ac_timer.h>
 #include <xen/perfc.h>
 #include <xen/sched-if.h>
-#include <xen/slab.h>
 #include <xen/softirq.h>
 
 /* all per-domain BVT-specific scheduling info is stored here */
index 646f4e8bd9e8f533578b1851aa943f3d8cc0fd5a..15420e6eb43da4a81c1988d23871da787f54a6a1 100644 (file)
@@ -5,13 +5,13 @@
  * based on code by Mark Williamson (C) 2004 Intel Research Cambridge
  */
 
+#include <xen/lib.h>
 #include <xen/sched.h>
 #include <xen/sched-if.h>
 #include <public/sched_ctl.h>
 #include <xen/ac_timer.h>
 #include <xen/softirq.h>
 #include <xen/time.h>
-#include <xen/slab.h>
 
 /*verbosity settings*/
 #define SEDFLEVEL 0
index 952a2f958358976bbdaeb62a6470e6f0348e037d..291d35dd289a9856c6b7d3ab5a050adca418ff3f 100644 (file)
@@ -23,7 +23,6 @@
 #include <asm/io.h>
 #include <xen/lib.h>
 #include <xen/sched.h>
-#include <xen/slab.h>
 #include <xen/smp.h>
 #include <xen/trace.h>
 #include <xen/errno.h>
index 367456e99ea7833d64f85adac5c3f486bf3d5c21..2c77b4305660e09cc5dba23716c76823f7185ba7 100644 (file)
@@ -5,7 +5,7 @@
 #include <stdarg.h>
 #include <xen/config.h>
 #include <xen/types.h>
-#include <xen/slab.h>
+#include <xen/xmalloc.h>
 #include <xen/string.h>
 
 #define BUG() do {                                     \
index 43d218fc0051f15ad0f7ad8632fdf3812915025a..366f3ae6617f4125ba05af58ec29e651d71ac9b4 100644 (file)
@@ -7,21 +7,15 @@
 #include <xen/spinlock.h>
 #include <xen/cache.h>
 #include <xen/smp.h>
-#include <asm/page.h>
-#include <asm/processor.h>
 #include <public/xen.h>
 #include <public/dom0_ops.h>
 #include <xen/list.h>
 #include <xen/time.h>
 #include <xen/ac_timer.h>
 #include <xen/delay.h>
-#include <asm/atomic.h>
-#include <asm/current.h>
 #include <xen/spinlock.h>
 #include <xen/grant_table.h>
-#include <asm/hardirq.h>
 #include <asm/domain.h>
-#include <asm/bitops.h>
 
 extern unsigned long volatile jiffies;
 extern rwlock_t domlist_lock;
diff --git a/xen/include/xen/slab.h b/xen/include/xen/slab.h
deleted file mode 100644 (file)
index 4736ded..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-
-#ifndef __SLAB_H__
-#define __SLAB_H__
-
-/* Allocate space for typed object. */
-#define xmalloc(_type) ((_type *)_xmalloc(sizeof(_type), __alignof__(_type)))
-
-/* Allocate space for array of typed objects. */
-#define xmalloc_array(_type, _num) ((_type *)_xmalloc_array(sizeof(_type), __alignof__(_type), _num))
-
-/* Allocate untyped storage. */
-#define xmalloc_bytes(_bytes) (_xmalloc(_bytes, SMP_CACHE_BYTES))
-
-/* Free any of the above. */
-extern void xfree(const void *);
-
-/* Underlying functions */
-extern void *_xmalloc(size_t size, size_t align);
-static inline void *_xmalloc_array(size_t size, size_t align, size_t num)
-{
-       /* Check for overflow. */
-       if (size && num > UINT_MAX / size)
-               return NULL;
-       return _xmalloc(size * num, align);
-}
-
-#endif /* __SLAB_H__ */
diff --git a/xen/include/xen/xmalloc.h b/xen/include/xen/xmalloc.h
new file mode 100644 (file)
index 0000000..893627f
--- /dev/null
@@ -0,0 +1,27 @@
+
+#ifndef __XMALLOC_H__
+#define __XMALLOC_H__
+
+/* Allocate space for typed object. */
+#define xmalloc(_type) ((_type *)_xmalloc(sizeof(_type), __alignof__(_type)))
+
+/* Allocate space for array of typed objects. */
+#define xmalloc_array(_type, _num) ((_type *)_xmalloc_array(sizeof(_type), __alignof__(_type), _num))
+
+/* Allocate untyped storage. */
+#define xmalloc_bytes(_bytes) (_xmalloc(_bytes, SMP_CACHE_BYTES))
+
+/* Free any of the above. */
+extern void xfree(const void *);
+
+/* Underlying functions */
+extern void *_xmalloc(size_t size, size_t align);
+static inline void *_xmalloc_array(size_t size, size_t align, size_t num)
+{
+       /* Check for overflow. */
+       if (size && num > UINT_MAX / size)
+               return NULL;
+       return _xmalloc(size * num, align);
+}
+
+#endif /* __XMALLOC_H__ */